package com.supply.dl.activity.seachmode;

import android.content.Context;
import android.support.v4.util.ArrayMap;

import com.supply.dl.app.adapter.NormalAdapter;
import com.supply.dl.app.adapter.ViewHolder;
import com.supply.dl.app.http.BaseInfo;
import com.supply.dl.bean.BaseItemBean;
import com.supply.dl.http.HttpManger;

/**
 * Created by ${qianzhihe} on 2018/8/5.
 */

public class BaseModle extends ISearchModle<BaseItemBean> implements HttpManger.HttpResponseCallBackListener,NormalAdapter.OnItemClickListener<BaseItemBean>{

    boolean isInBound;


    @Override
    public void setSearchAdapter() {

    }


    @Override
    public void setHintText() {

    }

    @Override
    public void setTitleShow() {

    }

    @Override
    public void init(Context context) {

    }


    @Override
    public void vistData(String keyWord, ArrayMap<String, String> filterMap, OnVistDataSuccess onVistDataSuccess) {

    }

    @Override
    public void onItemClick(ViewHolder viewHolder, BaseItemBean data, int position) {

    }

    @Override
    public void onSuccess(BaseInfo<?> baseInfo) {
        if(resultListener != null)
            resultListener.onResult();
    }

    @Override
    public void onFailure(String message) {
        if(resultListener != null)
            resultListener.onResult();
    }
}
